CloudRunMetadata.fromJson constructor

CloudRunMetadata.fromJson(
  1. Map json_
)

Implementation

CloudRunMetadata.fromJson(core.Map json_)
    : this(
        job: json_.containsKey('job') ? json_['job'] as core.String : null,
        revision: json_.containsKey('revision')
            ? json_['revision'] as core.String
            : null,
        service: json_.containsKey('service')
            ? json_['service'] as core.String
            : null,
        serviceUrls: json_.containsKey('serviceUrls')
            ? (json_['serviceUrls'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );