| { | |||||
| "id": 9, | |||||
| "name": "ACTIVE_TYPE_OTHER", | |||||
| "description": "Hoạt động khác" | |||||
| } |
| import 'package:json_annotation/json_annotation.dart'; | |||||
| part 'ActionType.g.dart'; | |||||
| @JsonSerializable() | |||||
| class ActionType { | |||||
| ActionType(); | |||||
| num id; | |||||
| String name; | |||||
| String description; | |||||
| factory ActionType.fromJson(Map<String,dynamic> json) => _$ActionTypeFromJson(json); | |||||
| Map<String, dynamic> toJson() => _$ActionTypeToJson(this); | |||||
| } |
| // GENERATED CODE - DO NOT MODIFY BY HAND | |||||
| part of 'ActionType.dart'; | |||||
| // ************************************************************************** | |||||
| // JsonSerializableGenerator | |||||
| // ************************************************************************** | |||||
| ActionType _$ActionTypeFromJson(Map<String, dynamic> json) { | |||||
| return ActionType() | |||||
| ..id = json['id'] as num | |||||
| ..name = json['name'] as String | |||||
| ..description = json['description'] as String; | |||||
| } | |||||
| Map<String, dynamic> _$ActionTypeToJson(ActionType instance) => | |||||
| <String, dynamic>{ | |||||
| 'id': instance.id, | |||||
| 'name': instance.name, | |||||
| 'description': instance.description | |||||
| }; |
| export 'Supply.dart'; | |||||
| export 'Plot.dart'; | |||||
| export 'ResourceHelper.dart'; | |||||
| export 'OtherAction.dart'; | |||||
| export 'Supply.dart' ; | |||||
| export 'Plot.dart' ; | |||||
| export 'ResourceHelper.dart' ; | |||||
| export 'ActionType.dart' ; | |||||
| export 'OtherAction.dart' ; |