ListSpacesResponse.fromJson constructor

ListSpacesResponse.fromJson(
  1. Map json_
)

Implementation

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