id_name_entity.dart 451 B

1234567891011121314151617181920
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/id_name_entity.g.dart';
  3. import 'dart:convert';
  4. @JsonSerializable()
  5. class IdNameEntity {
  6. String? id;
  7. String? name;
  8. IdNameEntity();
  9. factory IdNameEntity.fromJson(Map<String, dynamic> json) => $IdNameEntityFromJson(json);
  10. Map<String, dynamic> toJson() => $IdNameEntityToJson(this);
  11. @override
  12. String toString() {
  13. return jsonEncode(this);
  14. }
  15. }