DimensionMetadata.fromJson constructor

DimensionMetadata.fromJson(
  1. Map json_
)

Implementation

DimensionMetadata.fromJson(core.Map json_)
    : this(
        apiName: json_.containsKey('apiName')
            ? json_['apiName'] as core.String
            : null,
        category: json_.containsKey('category')
            ? json_['category'] as core.String
            : null,
        customDefinition: json_.containsKey('customDefinition')
            ? json_['customDefinition'] as core.bool
            : null,
        deprecatedApiNames: json_.containsKey('deprecatedApiNames')
            ? (json_['deprecatedApiNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        uiName: json_.containsKey('uiName')
            ? json_['uiName'] as core.String
            : null,
      );