api_rsp.g.dart 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // GENERATED CODE - DO NOT MODIFY BY HAND
  2. part of 'api_rsp.dart';
  3. // **************************************************************************
  4. // JsonSerializableGenerator
  5. // **************************************************************************
  6. ApiRsp<T> _$ApiRspFromJson<T>(
  7. Map<String, dynamic> json,
  8. T Function(Object? json) fromJsonT,
  9. ) =>
  10. ApiRsp<T>(
  11. code: const NumConverter().fromJson(json['code']),
  12. data: _$nullableGenericFromJson(json['data'], fromJsonT),
  13. string: const StringConverter().fromJson(json['string']),
  14. );
  15. Map<String, dynamic> _$ApiRspToJson<T>(
  16. ApiRsp<T> instance,
  17. Object? Function(T value) toJsonT,
  18. ) =>
  19. <String, dynamic>{
  20. 'code': const NumConverter().toJson(instance.code),
  21. 'data': _$nullableGenericToJson(instance.data, toJsonT),
  22. 'string': const StringConverter().toJson(instance.string),
  23. };
  24. T? _$nullableGenericFromJson<T>(
  25. Object? input,
  26. T Function(Object? json) fromJson,
  27. ) =>
  28. input == null ? null : fromJson(input);
  29. Object? _$nullableGenericToJson<T>(
  30. T? input,
  31. Object? Function(T value) toJson,
  32. ) =>
  33. input == null ? null : toJson(input);