facility_index_entity.dart 659 B

12345678910111213141516171819202122232425
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/facility_index_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/facility_index_entity.g.dart';
  5. @JsonSerializable()
  6. class FacilityIndexEntity {
  7. String? id;
  8. String? icon;
  9. String? name;
  10. @JSONField(name: "map_resources")
  11. List<String> mapResources = [];
  12. FacilityIndexEntity();
  13. factory FacilityIndexEntity.fromJson(Map<String, dynamic> json) => $FacilityIndexEntityFromJson(json);
  14. Map<String, dynamic> toJson() => $FacilityIndexEntityToJson(this);
  15. @override
  16. String toString() {
  17. return jsonEncode(this);
  18. }
  19. }