ListTokensResponse.fromJson constructor

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

Implementation

factory ListTokensResponse.fromJson(Map<String, dynamic> json) {
  return ListTokensResponse(
    nextToken: json['NextToken'] as String?,
    tokens: (json['Tokens'] as List?)
        ?.whereNotNull()
        .map((e) => TokenData.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}