ListSubscriptionDefinitionsResponse.fromJson constructor

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

Implementation

factory ListSubscriptionDefinitionsResponse.fromJson(
    Map<String, dynamic> json) {
  return ListSubscriptionDefinitionsResponse(
    definitions: (json['Definitions'] as List?)
        ?.whereNotNull()
        .map((e) => DefinitionInformation.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}