GoogleAppsDriveLabelsV2Label.fromJson constructor

GoogleAppsDriveLabelsV2Label.fromJson(
  1. Map json_
)

Implementation

GoogleAppsDriveLabelsV2Label.fromJson(core.Map json_)
    : this(
        appliedCapabilities: json_.containsKey('appliedCapabilities')
            ? GoogleAppsDriveLabelsV2LabelAppliedCapabilities.fromJson(
                json_['appliedCapabilities']
                    as core.Map<core.String, core.dynamic>)
            : null,
        appliedLabelPolicy: json_.containsKey('appliedLabelPolicy')
            ? GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy.fromJson(
                json_['appliedLabelPolicy']
                    as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        creator: json_.containsKey('creator')
            ? GoogleAppsDriveLabelsV2UserInfo.fromJson(
                json_['creator'] as core.Map<core.String, core.dynamic>)
            : null,
        customer: json_.containsKey('customer')
            ? json_['customer'] as core.String
            : null,
        disableTime: json_.containsKey('disableTime')
            ? json_['disableTime'] as core.String
            : null,
        disabler: json_.containsKey('disabler')
            ? GoogleAppsDriveLabelsV2UserInfo.fromJson(
                json_['disabler'] as core.Map<core.String, core.dynamic>)
            : null,
        displayHints: json_.containsKey('displayHints')
            ? GoogleAppsDriveLabelsV2LabelDisplayHints.fromJson(
                json_['displayHints'] as core.Map<core.String, core.dynamic>)
            : null,
        fields: json_.containsKey('fields')
            ? (json_['fields'] as core.List)
                .map((value) => GoogleAppsDriveLabelsV2Field.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        labelType: json_.containsKey('labelType')
            ? json_['labelType'] as core.String
            : null,
        learnMoreUri: json_.containsKey('learnMoreUri')
            ? json_['learnMoreUri'] as core.String
            : null,
        lifecycle: json_.containsKey('lifecycle')
            ? GoogleAppsDriveLabelsV2Lifecycle.fromJson(
                json_['lifecycle'] as core.Map<core.String, core.dynamic>)
            : null,
        lockStatus: json_.containsKey('lockStatus')
            ? GoogleAppsDriveLabelsV2LockStatus.fromJson(
                json_['lockStatus'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        properties: json_.containsKey('properties')
            ? GoogleAppsDriveLabelsV2LabelProperties.fromJson(
                json_['properties'] as core.Map<core.String, core.dynamic>)
            : null,
        publishTime: json_.containsKey('publishTime')
            ? json_['publishTime'] as core.String
            : null,
        publisher: json_.containsKey('publisher')
            ? GoogleAppsDriveLabelsV2UserInfo.fromJson(
                json_['publisher'] as core.Map<core.String, core.dynamic>)
            : null,
        revisionCreateTime: json_.containsKey('revisionCreateTime')
            ? json_['revisionCreateTime'] as core.String
            : null,
        revisionCreator: json_.containsKey('revisionCreator')
            ? GoogleAppsDriveLabelsV2UserInfo.fromJson(
                json_['revisionCreator']
                    as core.Map<core.String, core.dynamic>)
            : null,
        revisionId: json_.containsKey('revisionId')
            ? json_['revisionId'] as core.String
            : null,
        schemaCapabilities: json_.containsKey('schemaCapabilities')
            ? GoogleAppsDriveLabelsV2LabelSchemaCapabilities.fromJson(
                json_['schemaCapabilities']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );