toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final email = this.email;
  final firstName = this.firstName;
  final lastName = this.lastName;
  return {
    if (email != null) 'Email': email,
    if (firstName != null) 'FirstName': firstName,
    if (lastName != null) 'LastName': lastName,
  };
}