/* 用户信息模型 * */ import 'JXServiceModel.dart'; class JXMemberModel { /*姓名*/ String name = ''; /*电话*/ String tel = ''; /*生日信息*/ String birth = ''; /*地址*/ String prov = ''; String city = ''; String area = ''; String addr = ''; /*其他*/ String remark = ''; /*服务*/ List service = []; Map toMap() { return { name: name, tel: tel, birth: birth, prov: prov, city: city, area: area, addr: addr, remark: remark, }.map((key, value) => key.isNotEmpty?MapEntry(key, value):null); } }