BuyerHistory.fromJson constructor
BuyerHistory.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BuyerHistory.fromJson(Map<String, dynamic> json) {
return BuyerHistory(
registeredSince: json['registered_since'] as String,
loyaltyLevel: json['loyalty_level'] as int,
wishlistCount:
json['wishlist_count'] != null ? json['wishlist_count'] as int : null,
isSocialNetworksConnected: json['is_social_networks_connected'] != null
? json['is_social_networks_connected'] as bool
: null,
isPhoneNumberVerified: json['is_phone_number_verified'] != null
? json['is_phone_number_verified'] as bool
: null,
isEmailVerified: json['is_email_verified'] != null
? json['is_email_verified'] as bool
: null,
);
}