JXMemberModel.dart 641 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. 用户信息模型
  3. * */
  4. import 'JXServiceModel.dart';
  5. class JXMemberModel {
  6. /*姓名*/
  7. String name = '';
  8. /*电话*/
  9. String tel = '';
  10. /*生日信息*/
  11. String birth = '';
  12. /*地址*/
  13. String prov = '';
  14. String city = '';
  15. String area = '';
  16. String addr = '';
  17. /*其他*/
  18. String remark = '';
  19. /*服务*/
  20. List <JXServiceModel> service = [];
  21. Map<String, dynamic> toMap() {
  22. return {
  23. name: name,
  24. tel: tel,
  25. birth: birth,
  26. prov: prov,
  27. city: city,
  28. area: area,
  29. addr: addr,
  30. remark: remark,
  31. }.map((key, value) => key.isNotEmpty?MapEntry(key, value):null);
  32. }
  33. }