toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      if (type != null) 'type': type,
      if (externalUserId != null) 'externalUserId': externalUserId,
      if (fullName != null) 'fullName': fullName,
      if (firstName != null) 'firstName': firstName,
      if (lastName != null) 'lastName': lastName,
      if (dob != null) 'dob': dob,
      if (address != null) 'address': address,
      if (institutionInfo != null) 'institutionInfo': institutionInfo,
      if (device != null) 'device': device,
      if (paymentMethod != null) 'paymentMethod': paymentMethod!.toMap(),
    };