ProtocolsListDataSummary.fromJson constructor

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

Implementation

factory ProtocolsListDataSummary.fromJson(Map<String, dynamic> json) {
  return ProtocolsListDataSummary(
    listArn: json['ListArn'] as String?,
    listId: json['ListId'] as String?,
    listName: json['ListName'] as String?,
    protocolsList: (json['ProtocolsList'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}