GoogleCloudAiplatformV1Schema.fromJson constructor

GoogleCloudAiplatformV1Schema.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1Schema.fromJson(core.Map json_)
    : this(
        default_: json_.containsKey('default') ? json_['default'] : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        enum_: json_.containsKey('enum')
            ? (json_['enum'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        example: json_.containsKey('example') ? json_['example'] : null,
        format: json_.containsKey('format')
            ? json_['format'] as core.String
            : null,
        items: json_.containsKey('items')
            ? GoogleCloudAiplatformV1Schema.fromJson(
                json_['items'] as core.Map<core.String, core.dynamic>)
            : null,
        maxItems: json_.containsKey('maxItems')
            ? json_['maxItems'] as core.String
            : null,
        maxLength: json_.containsKey('maxLength')
            ? json_['maxLength'] as core.String
            : null,
        maxProperties: json_.containsKey('maxProperties')
            ? json_['maxProperties'] as core.String
            : null,
        maximum: json_.containsKey('maximum')
            ? (json_['maximum'] as core.num).toDouble()
            : null,
        minItems: json_.containsKey('minItems')
            ? json_['minItems'] as core.String
            : null,
        minLength: json_.containsKey('minLength')
            ? json_['minLength'] as core.String
            : null,
        minProperties: json_.containsKey('minProperties')
            ? json_['minProperties'] as core.String
            : null,
        minimum: json_.containsKey('minimum')
            ? (json_['minimum'] as core.num).toDouble()
            : null,
        nullable: json_.containsKey('nullable')
            ? json_['nullable'] as core.bool
            : null,
        pattern: json_.containsKey('pattern')
            ? json_['pattern'] as core.String
            : null,
        properties: json_.containsKey('properties')
            ? (json_['properties'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudAiplatformV1Schema.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        required: json_.containsKey('required')
            ? (json_['required'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );