GetTagsResponse.fromJson constructor

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

Implementation

factory GetTagsResponse.fromJson(Map<String, dynamic> json) {
  return GetTagsResponse(
    returnSize: json['ReturnSize'] as int,
    tags: (json['Tags'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    totalSize: json['TotalSize'] as int,
    nextPageToken: json['NextPageToken'] as String?,
  );
}