GetContactListResponse.fromJson constructor

GetContactListResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetContactListResponse.fromJson(Map<String, dynamic> json) {
  return GetContactListResponse(
    contactListName: json['ContactListName'] as String?,
    createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
    description: json['Description'] as String?,
    lastUpdatedTimestamp: timeStampFromJson(json['LastUpdatedTimestamp']),
    tags: (json['Tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
    topics: (json['Topics'] as List?)
        ?.whereNotNull()
        .map((e) => Topic.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}