ListPlatformsResponse.fromJson constructor

ListPlatformsResponse.fromJson(
  1. Map json_
)

Implementation

ListPlatformsResponse.fromJson(core.Map json_)
    : this(
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        platforms: json_.containsKey('platforms')
            ? (json_['platforms'] as core.List)
                .map((value) => Platform.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );