GoogleAppsDriveLabelsV2Field.fromJson constructor

GoogleAppsDriveLabelsV2Field.fromJson(
  1. Map json_
)

Implementation

GoogleAppsDriveLabelsV2Field.fromJson(core.Map json_)
    : this(
        appliedCapabilities: json_.containsKey('appliedCapabilities')
            ? GoogleAppsDriveLabelsV2FieldAppliedCapabilities.fromJson(
                json_['appliedCapabilities']
                    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,
        dateOptions: json_.containsKey('dateOptions')
            ? GoogleAppsDriveLabelsV2FieldDateOptions.fromJson(
                json_['dateOptions'] as core.Map<core.String, core.dynamic>)
            : 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')
            ? GoogleAppsDriveLabelsV2FieldDisplayHints.fromJson(
                json_['displayHints'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        integerOptions: json_.containsKey('integerOptions')
            ? GoogleAppsDriveLabelsV2FieldIntegerOptions.fromJson(
                json_['integerOptions']
                    as core.Map<core.String, core.dynamic>)
            : 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,
        properties: json_.containsKey('properties')
            ? GoogleAppsDriveLabelsV2FieldProperties.fromJson(
                json_['properties'] as core.Map<core.String, core.dynamic>)
            : null,
        publisher: json_.containsKey('publisher')
            ? GoogleAppsDriveLabelsV2UserInfo.fromJson(
                json_['publisher'] as core.Map<core.String, core.dynamic>)
            : null,
        queryKey: json_.containsKey('queryKey')
            ? json_['queryKey'] as core.String
            : null,
        schemaCapabilities: json_.containsKey('schemaCapabilities')
            ? GoogleAppsDriveLabelsV2FieldSchemaCapabilities.fromJson(
                json_['schemaCapabilities']
                    as core.Map<core.String, core.dynamic>)
            : null,
        selectionOptions: json_.containsKey('selectionOptions')
            ? GoogleAppsDriveLabelsV2FieldSelectionOptions.fromJson(
                json_['selectionOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        textOptions: json_.containsKey('textOptions')
            ? GoogleAppsDriveLabelsV2FieldTextOptions.fromJson(
                json_['textOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        updater: json_.containsKey('updater')
            ? GoogleAppsDriveLabelsV2UserInfo.fromJson(
                json_['updater'] as core.Map<core.String, core.dynamic>)
            : null,
        userOptions: json_.containsKey('userOptions')
            ? GoogleAppsDriveLabelsV2FieldUserOptions.fromJson(
                json_['userOptions'] as core.Map<core.String, core.dynamic>)
            : null,
      );