posts_model.g.dart 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // GENERATED CODE - DO NOT MODIFY BY HAND
  2. part of 'posts_model.dart';
  3. // **************************************************************************
  4. // JsonSerializableGenerator
  5. // **************************************************************************
  6. PostsModel _$PostsModelFromJson(Map<String, dynamic> json) {
  7. return PostsModel(
  8. json['postsID'] as String,
  9. json['postsContent'] as String,
  10. json['postsMaker'] as String,
  11. json['postsMakeDate'] == null
  12. ? DateTime.now()
  13. : DateTime.parse(json['postsMakeDate'] as String),
  14. json['postsPicCount'] as int,
  15. json['postsReaded'] as int,
  16. json['postsLoved'] as int,
  17. json['postsPics'] as String,
  18. json['ifLY'] as int,
  19. json['ifOfficial'] as int,
  20. json['ifUserLoved'] as bool,
  21. (json['latitude'] as num).toDouble(),
  22. (json['longitude'] as num).toDouble(),
  23. json['makerID'] as String,
  24. json['makerName'] as String,
  25. json['makerPhoto'] as String,
  26. json['picsPath'] as String,
  27. (json['picsRate'] as num).toDouble(),
  28. json['picsSimpPath'] as String,
  29. json['postsLocation'] as String,
  30. json['postsStatus'] as int,
  31. json['postsType'] as String,
  32. json['whenPosts'] as String,
  33. );
  34. }
  35. Map<String, dynamic> _$PostsModelToJson(PostsModel instance) =>
  36. <String, dynamic>{
  37. 'postsID': instance.postsID,
  38. 'postsContent': instance.postsContent,
  39. 'postsMaker': instance.postsMaker,
  40. 'postsMakeDate': instance.postsMakeDate.toIso8601String(),
  41. 'postsPicCount': instance.postsPicCount,
  42. 'postsReaded': instance.postsReaded,
  43. 'postsLoved': instance.postsLoved,
  44. 'postsPics': instance.postsPics,
  45. 'makerName': instance.makerName,
  46. 'makerID': instance.makerID,
  47. 'picsSimpPath': instance.picsSimpPath,
  48. 'picsPath': instance.picsPath,
  49. 'whenPosts': instance.whenPosts,
  50. 'makerPhoto': instance.makerPhoto,
  51. 'latitude': instance.latitude,
  52. 'longitude': instance.longitude,
  53. 'postsLocation': instance.postsLocation,
  54. 'postsType': instance.postsType,
  55. 'postsStatus': instance.postsStatus,
  56. 'ifOfficial': instance.ifOfficial,
  57. 'ifLY': instance.ifLY,
  58. 'picsRate': instance.picsRate,
  59. 'ifUserLoved': instance.ifUserLoved,
  60. };