EndpointMatcherMetadataLabelMatcher.fromJson constructor

EndpointMatcherMetadataLabelMatcher.fromJson(
  1. Map json_
)

Implementation

EndpointMatcherMetadataLabelMatcher.fromJson(core.Map json_)
    : this(
        metadataLabelMatchCriteria:
            json_.containsKey('metadataLabelMatchCriteria')
                ? json_['metadataLabelMatchCriteria'] as core.String
                : null,
        metadataLabels: json_.containsKey('metadataLabels')
            ? (json_['metadataLabels'] as core.List)
                .map((value) =>
                    EndpointMatcherMetadataLabelMatcherMetadataLabels
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );