toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'birthday': birthday?.toJson(),
      'city': city,
      'country': country,
      'emailAddress': emailAddress,
      'emailReceiverId': emailReceiverId,
      'firstName': firstName,
      'gender': gender?.index,
      'customerId': customerId,
      'lastName': lastName,
      'newsletterSubscribed': newsletterSubscribed,
      'phoneNumber': phoneNumber,
      'street': street,
      'streetNumber': streetNumber,
      'zipCode': zipCode,
      'customCategories': customCategories
          ?.map((key, value) => MapEntry(key.toString(), value))
    };