server_time.dart 487 B

1234567891011121314151617181920
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/server_time.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/server_time.g.dart';
  5. @JsonSerializable()
  6. class ServerTime {
  7. int? timestamps;
  8. ServerTime();
  9. factory ServerTime.fromJson(Map<String, dynamic> json) => $ServerTimeFromJson(json);
  10. Map<String, dynamic> toJson() => $ServerTimeToJson(this);
  11. @override
  12. String toString() {
  13. return jsonEncode(this);
  14. }
  15. }