ListBucketsResponse.fromJson constructor

ListBucketsResponse.fromJson(
  1. Map _json
)

Implementation

ListBucketsResponse.fromJson(core.Map _json)
    : this(
        buckets: _json.containsKey('buckets')
            ? (_json['buckets'] as core.List)
                .map((value) => Bucket.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
      );