toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    if (name != null) 'name': name,
    if (email != null) 'email': email,
    if (phone != null) 'phone': phone,
    if (emailSha256 != null) 'emailSha256': emailSha256,
    if (phoneSha256 != null) 'phoneSha256': phoneSha256,
  };
}