clinic_info.dart 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'clinic_info.g.dart';
  3. ///诊所信息
  4. @JsonSerializable()
  5. class ClinicInfo {
  6. @JsonKey(name: "id")
  7. final String? id;
  8. @JsonKey(name: "isDel")
  9. final int? isDel;
  10. @JsonKey(name: "createDate")
  11. final String? createDate;
  12. @JsonKey(name: "createUser")
  13. final String? createUser;
  14. @JsonKey(name: "updateDate")
  15. final String? updateDate;
  16. @JsonKey(name: "updateUser")
  17. final String? updateUser;
  18. @JsonKey(name: "tenantId")
  19. final String? tenantId;
  20. @JsonKey(name: "clinicName")
  21. final String? clinicName;
  22. @JsonKey(name: "clinicApiUrl")
  23. final String? clinicApiUrl;
  24. ClinicInfo({
  25. this.id,
  26. this.isDel,
  27. this.createDate,
  28. this.createUser,
  29. this.updateDate,
  30. this.updateUser,
  31. this.tenantId,
  32. this.clinicName,
  33. this.clinicApiUrl,
  34. });
  35. factory ClinicInfo.fromJson(Map<String, dynamic> json) {
  36. return _$ClinicInfoFromJson(json);
  37. }
  38. Map<String, dynamic> toJson() {
  39. return _$ClinicInfoToJson(this);
  40. }
  41. @override
  42. String toString() => "${toJson()}";
  43. }