json_field.dart 788 B

123456789101112131415161718192021222324252627282930313233
  1. // ignore_for_file: non_constant_identifier_names
  2. // ignore_for_file: camel_case_types
  3. // ignore_for_file: prefer_single_quotes
  4. // This file is automatically generated. DO NOT EDIT, all your changes would be lost.
  5. import 'package:meta/meta_meta.dart';
  6. @Target({TargetKind.classType})
  7. class JsonSerializable {
  8. const JsonSerializable();
  9. }
  10. @Target({TargetKind.field})
  11. class JSONField {
  12. //Specify the parse field name
  13. final String? name;
  14. //Whether to participate in toJson
  15. final bool? serialize;
  16. //Whether to participate in fromMap
  17. final bool? deserialize;
  18. //Whether to participate in copyWith
  19. final bool? copyWith;
  20. //Enumeration or not
  21. final bool? isEnum;
  22. const JSONField({this.name, this.serialize, this.deserialize, this.isEnum, this.copyWith});
  23. }