GetContactResponse.fromJson constructor
GetContactResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetContactResponse.fromJson(Map<String, dynamic> json) {
return GetContactResponse(
attributesData: json['AttributesData'] as String?,
contactListName: json['ContactListName'] as String?,
createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
emailAddress: json['EmailAddress'] as String?,
lastUpdatedTimestamp: timeStampFromJson(json['LastUpdatedTimestamp']),
topicDefaultPreferences: (json['TopicDefaultPreferences'] as List?)
?.whereNotNull()
.map((e) => TopicPreference.fromJson(e as Map<String, dynamic>))
.toList(),
topicPreferences: (json['TopicPreferences'] as List?)
?.whereNotNull()
.map((e) => TopicPreference.fromJson(e as Map<String, dynamic>))
.toList(),
unsubscribeAll: json['UnsubscribeAll'] as bool?,
);
}