toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (address != null) 'address': address!,
      if (contactType != null) 'contactType': contactType!,
      if (email != null) 'email': email!,
      if (firstName != null) 'firstName': firstName!,
      if (id != null) 'id': id!,
      if (lastName != null) 'lastName': lastName!,
      if (phone != null) 'phone': phone!,
      if (title != null) 'title': title!,
    };