form_option_entity.dart 679 B

123456789101112131415161718192021222324
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/form_option_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/form_option_entity.g.dart';
  5. @JsonSerializable()
  6. class FormOptionEntity {
  7. @JSONField(name: "type_of_application")
  8. List<String> typeOfApplication = [];
  9. @JSONField(name: "ownership_status")
  10. List<String> ownershipStatus = [];
  11. FormOptionEntity();
  12. factory FormOptionEntity.fromJson(Map<String, dynamic> json) => $FormOptionEntityFromJson(json);
  13. Map<String, dynamic> toJson() => $FormOptionEntityToJson(this);
  14. @override
  15. String toString() {
  16. return jsonEncode(this);
  17. }
  18. }