BucketCors.fromJson constructor

BucketCors.fromJson(
  1. Map json_
)

Implementation

BucketCors.fromJson(core.Map json_)
    : this(
        maxAgeSeconds: json_.containsKey('maxAgeSeconds')
            ? json_['maxAgeSeconds'] as core.int
            : null,
        method: json_.containsKey('method')
            ? (json_['method'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        origin: json_.containsKey('origin')
            ? (json_['origin'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        responseHeader: json_.containsKey('responseHeader')
            ? (json_['responseHeader'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );