GoogleFirebaseExtensionsV1betaExtensionSpecParameter.fromJson constructor

GoogleFirebaseExtensionsV1betaExtensionSpecParameter.fromJson(
  1. Map _json
)

Implementation

GoogleFirebaseExtensionsV1betaExtensionSpecParameter.fromJson(core.Map _json)
    : this(
        default_: _json.containsKey('default')
            ? _json['default'] as core.String
            : null,
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : null,
        example: _json.containsKey('example')
            ? _json['example'] as core.String
            : null,
        immutable: _json.containsKey('immutable')
            ? _json['immutable'] as core.bool
            : null,
        label:
            _json.containsKey('label') ? _json['label'] as core.String : null,
        options: _json.containsKey('options')
            ? (_json['options'] as core.List)
                .map((value) =>
                    GoogleFirebaseExtensionsV1betaParamSelectOption.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        param:
            _json.containsKey('param') ? _json['param'] as core.String : null,
        required: _json.containsKey('required')
            ? _json['required'] as core.bool
            : null,
        resourceInfo: _json.containsKey('resourceInfo')
            ? GoogleFirebaseExtensionsV1betaResourceInfo.fromJson(
                _json['resourceInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
        validationErrorMessage: _json.containsKey('validationErrorMessage')
            ? _json['validationErrorMessage'] as core.String
            : null,
        validationRegex: _json.containsKey('validationRegex')
            ? _json['validationRegex'] as core.String
            : null,
      );