list_result.g.dart 866 B

123456789101112131415161718192021222324252627
  1. // GENERATED CODE - DO NOT MODIFY BY HAND
  2. part of 'list_result.dart';
  3. // **************************************************************************
  4. // JsonSerializableGenerator
  5. // **************************************************************************
  6. BaseListResult<T> _$BaseListResultFromJson<T>(
  7. Map<String, dynamic> json,
  8. T Function(Object? json) fromJsonT,
  9. ) => BaseListResult<T>(
  10. count: (json['count'] as num).toInt(),
  11. previous: json['previous'] as String?,
  12. next: json['next'] as String?,
  13. results: (json['results'] as List<dynamic>).map(fromJsonT).toList(),
  14. );
  15. Map<String, dynamic> _$BaseListResultToJson<T>(
  16. BaseListResult<T> instance,
  17. Object? Function(T value) toJsonT,
  18. ) => <String, dynamic>{
  19. 'count': instance.count,
  20. 'previous': instance.previous,
  21. 'next': instance.next,
  22. 'results': instance.results.map(toJsonT).toList(),
  23. };