toEntity method
Implementation
@override
MemberEntity toEntity({String? appId}) {
return MemberEntity(
name: (name != null) ? name : null,
subscriptions: (subscriptions != null)
? subscriptions!.map((item) => item.toEntity(appId: appId)).toList()
: null,
subscriptionsAsStrArr:
(subscriptionsAsStrArr != null) ? subscriptionsAsStrArr : null,
photoId: (photo != null) ? photo!.documentID : null,
photoURL: (photoURL != null) ? photoURL : null,
shipStreet1: (shipStreet1 != null) ? shipStreet1 : null,
shipStreet2: (shipStreet2 != null) ? shipStreet2 : null,
shipCity: (shipCity != null) ? shipCity : null,
shipState: (shipState != null) ? shipState : null,
postcode: (postcode != null) ? postcode : null,
country: (country != null) ? country : null,
invoiceSame: (invoiceSame != null) ? invoiceSame : null,
invoiceStreet1: (invoiceStreet1 != null) ? invoiceStreet1 : null,
invoiceStreet2: (invoiceStreet2 != null) ? invoiceStreet2 : null,
invoiceCity: (invoiceCity != null) ? invoiceCity : null,
invoiceState: (invoiceState != null) ? invoiceState : null,
invoicePostcode: (invoicePostcode != null) ? invoicePostcode : null,
invoiceCountry: (invoiceCountry != null) ? invoiceCountry : null,
email: (email != null) ? email : null,
isAnonymous: (isAnonymous != null) ? isAnonymous : null,
);
}