18 lines
417 B
Dart
18 lines
417 B
Dart
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
||
|
|
import 'package:flutter/foundation.dart';
|
||
|
|
|
||
|
|
part 'time.freezed.dart';
|
||
|
|
part 'time.g.dart';
|
||
|
|
|
||
|
|
|
||
|
|
@freezed
|
||
|
|
class ServerTime with _$ServerTime {
|
||
|
|
const ServerTime._();
|
||
|
|
|
||
|
|
const factory ServerTime({@JsonKey(name: 'utc') @Default('') String utc}) =
|
||
|
|
_ServerTime;
|
||
|
|
|
||
|
|
factory ServerTime.fromJson(Map<String, dynamic> json) =>
|
||
|
|
_$ServerTimeFromJson(json);
|
||
|
|
}
|