基础库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

62 line
1.9 KiB

  1. // GENERATED CODE - DO NOT MODIFY BY HAND
  2. part of 'widget_model.dart';
  3. // **************************************************************************
  4. // JsonSerializableGenerator
  5. // **************************************************************************
  6. WidgetModel _$WidgetModelFromJson(Map<String, dynamic> json) {
  7. return WidgetModel(
  8. json['aspect_ratio'] as String,
  9. json['badge'] as String,
  10. json['bg_color'] as String,
  11. json['bg_color_t'] as String,
  12. json['bg_img'] as String,
  13. (json['components'] as List)
  14. ?.map((e) =>
  15. e == null ? null : WidgetModel.fromJson(e as Map<String, dynamic>))
  16. ?.toList(),
  17. json['data'] as String,
  18. json['font_color'] as String,
  19. json['icon'] as String,
  20. json['img'] as String,
  21. json['is_global'] as int,
  22. json['margin'] as String,
  23. json['mod_id'] as int,
  24. json['mod_name'] as String,
  25. json['mod_pid'] as int,
  26. json['path'] as String,
  27. json['position'] as String,
  28. json['sort'] as int,
  29. json['subtitle'] as String,
  30. json['title'] as String,
  31. json['url'] as String,
  32. );
  33. }
  34. Map<String, dynamic> _$WidgetModelToJson(WidgetModel instance) =>
  35. <String, dynamic>{
  36. 'aspect_ratio': instance.aspectRatio,
  37. 'badge': instance.badge,
  38. 'bg_color': instance.bgColor,
  39. 'bg_color_t': instance.bgColorT,
  40. 'bg_img': instance.bgImg,
  41. 'components': instance.components,
  42. 'data': instance.data,
  43. 'font_color': instance.fontColor,
  44. 'icon': instance.icon,
  45. 'img': instance.img,
  46. 'is_global': instance.isGlobal,
  47. 'margin': instance.margin,
  48. 'mod_id': instance.modId,
  49. 'mod_name': instance.modName,
  50. 'mod_pid': instance.modPid,
  51. 'path': instance.path,
  52. 'position': instance.position,
  53. 'sort': instance.sort,
  54. 'subtitle': instance.subtitle,
  55. 'title': instance.title,
  56. 'url': instance.url,
  57. };