toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  Map<String, dynamic> map = {
    'uid': uid,
    'vip': vip,
    'grade': grade,
    'category': category,
    'name': name,
    'nickName': nickName,
    'gender': gender,
    'age': age,
    'birthday': birthday,
    'maritalStatus': maritalStatus,
    'phone': phone,
    'qq': qq,
    'wechat': wechat,
    'email': email,
    'nation': nation,
    'province': province,
    'city': city,
    'address': address,
    'photo': photo,
    'memo': memo,
    'c1': c1,
    'c2': c2,
    'c3': c3,
    'c4': c4,
    'c5': c5,
    'c6': c6,
    'c7': c7,
    'c8': c8,
    'c9': c9,
    'c10': c10,
    'c11': c11,
    'c12': c12,
    'c13': c13,
    'c14': c14,
    'c15': c15,
    'c16': c16,
    'c17': c17,
    'c18': c18,
    'c19': c19,
    'c20': c20,
  };

  map.removeWhere((key, value) => value == null);
  return map;
}