DeveloperMetadataLookup.fromJson constructor

DeveloperMetadataLookup.fromJson(
  1. Map json_
)

Implementation

DeveloperMetadataLookup.fromJson(core.Map json_)
    : this(
        locationMatchingStrategy:
            json_.containsKey('locationMatchingStrategy')
                ? json_['locationMatchingStrategy'] as core.String
                : null,
        locationType: json_.containsKey('locationType')
            ? json_['locationType'] as core.String
            : null,
        metadataId: json_.containsKey('metadataId')
            ? json_['metadataId'] as core.int
            : null,
        metadataKey: json_.containsKey('metadataKey')
            ? json_['metadataKey'] as core.String
            : null,
        metadataLocation: json_.containsKey('metadataLocation')
            ? DeveloperMetadataLocation.fromJson(json_['metadataLocation']
                as core.Map<core.String, core.dynamic>)
            : null,
        metadataValue: json_.containsKey('metadataValue')
            ? json_['metadataValue'] as core.String
            : null,
        visibility: json_.containsKey('visibility')
            ? json_['visibility'] as core.String
            : null,
      );