api_response.g.dart 1.0 KB

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