toJson method
Implementation
Map<String, dynamic> toJson() => {
if (customerId != null) 'customerId': customerId!,
if (fullName != null) 'fullName': fullName!,
if (firstName != null) 'firstName': firstName!,
if (lastName != null) 'lastName': lastName!,
if (phoneNumber != null) 'phoneNumber': phoneNumber!,
if (email != null) 'email': email!,
if (address != null) 'address': address!.toJson(),
if (zipcode != null) 'zipcode': zipcode!,
if (gender != null) 'gender': gender!.toJson(),
if (birthYear != null) 'birthYear': birthYear!,
if (birthMonth != null) 'birthMonth': birthMonth!,
if (birthDay != null) 'birthDay': birthDay!,
if (firstNameKana != null) 'firstNameKana': firstNameKana!,
if (lastNameKana != null) 'lastNameKana': lastNameKana!,
};