12345678910111213141516171819202122232425 |
- import 'package:domain/generated/json/base/json_field.dart';
- import 'package:domain/generated/json/facility_index_entity.g.dart';
- import 'dart:convert';
- export 'package:domain/generated/json/facility_index_entity.g.dart';
- @JsonSerializable()
- class FacilityIndexEntity {
- String? id;
- String? icon;
- String? name;
- @JSONField(name: "map_resources")
- List<String> mapResources = [];
- FacilityIndexEntity();
- factory FacilityIndexEntity.fromJson(Map<String, dynamic> json) => $FacilityIndexEntityFromJson(json);
- Map<String, dynamic> toJson() => $FacilityIndexEntityToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
|