staff_detail_entity.dart 1011 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/staff_detail_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/staff_detail_entity.g.dart';
  5. @JsonSerializable()
  6. class StaffDetailEntity {
  7. @JSONField(name: "member_id")
  8. int memberId = 0;
  9. String? name = null;
  10. String? avatar = null;
  11. String? sex = null;
  12. String? dob = null;
  13. String? nric = null;
  14. String? mobile = null;
  15. String? email = null;
  16. String? address = null;
  17. String? natl = null;
  18. String? lang = null;
  19. @JSONField(name: "emer_name")
  20. String? emerName = null;
  21. @JSONField(name: "emer_phone")
  22. String? emerPhone = null;
  23. @JSONField(name: "rem_num")
  24. int remNum = 0;
  25. @JSONField(name: "rem_rate")
  26. double remRate = 5.0;
  27. StaffDetailEntity();
  28. factory StaffDetailEntity.fromJson(Map<String, dynamic> json) => $StaffDetailEntityFromJson(json);
  29. Map<String, dynamic> toJson() => $StaffDetailEntityToJson(this);
  30. @override
  31. String toString() {
  32. return jsonEncode(this);
  33. }
  34. }