server_time.g.dart 751 B

1234567891011121314151617181920212223242526
  1. import 'package:domain/generated/json/base/json_convert_content.dart';
  2. import 'package:domain/entity/server_time.dart';
  3. ServerTime $ServerTimeFromJson(Map<String, dynamic> json) {
  4. final ServerTime serverTime = ServerTime();
  5. final int? timestamps = jsonConvert.convert<int>(json['timestamps']);
  6. if (timestamps != null) {
  7. serverTime.timestamps = timestamps;
  8. }
  9. return serverTime;
  10. }
  11. Map<String, dynamic> $ServerTimeToJson(ServerTime entity) {
  12. final Map<String, dynamic> data = <String, dynamic>{};
  13. data['timestamps'] = entity.timestamps;
  14. return data;
  15. }
  16. extension ServerTimeExtension on ServerTime {
  17. ServerTime copyWith({
  18. int? timestamps,
  19. }) {
  20. return ServerTime()
  21. ..timestamps = timestamps ?? this.timestamps;
  22. }
  23. }