GoogleFirebaseExtensionsV1betaExtensionSpec.fromJson constructor

GoogleFirebaseExtensionsV1betaExtensionSpec.fromJson(
  1. Map _json
)

Implementation

GoogleFirebaseExtensionsV1betaExtensionSpec.fromJson(core.Map _json)
    : this(
        apis: _json.containsKey('apis')
            ? (_json['apis'] as core.List)
                .map((value) => GoogleFirebaseExtensionsV1betaApi.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        author: _json.containsKey('author')
            ? GoogleFirebaseExtensionsV1betaAuthor.fromJson(
                _json['author'] as core.Map<core.String, core.dynamic>)
            : null,
        billingRequired: _json.containsKey('billingRequired')
            ? _json['billingRequired'] as core.bool
            : null,
        contributors: _json.containsKey('contributors')
            ? (_json['contributors'] as core.List)
                .map((value) => GoogleFirebaseExtensionsV1betaAuthor.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : null,
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        events: _json.containsKey('events')
            ? (_json['events'] as core.List)
                .map((value) =>
                    GoogleFirebaseExtensionsV1betaEventDescriptor.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        externalServices: _json.containsKey('externalServices')
            ? (_json['externalServices'] as core.List)
                .map((value) =>
                    GoogleFirebaseExtensionsV1betaExternalService.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        license: _json.containsKey('license')
            ? _json['license'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        params: _json.containsKey('params')
            ? (_json['params'] as core.List)
                .map((value) =>
                    GoogleFirebaseExtensionsV1betaExtensionSpecParameter
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        postinstallContent: _json.containsKey('postinstallContent')
            ? _json['postinstallContent'] as core.String
            : null,
        preinstallContent: _json.containsKey('preinstallContent')
            ? _json['preinstallContent'] as core.String
            : null,
        readmeContent: _json.containsKey('readmeContent')
            ? _json['readmeContent'] as core.String
            : null,
        releaseNotesUrl: _json.containsKey('releaseNotesUrl')
            ? _json['releaseNotesUrl'] as core.String
            : null,
        resources: _json.containsKey('resources')
            ? (_json['resources'] as core.List)
                .map((value) =>
                    GoogleFirebaseExtensionsV1betaResource.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        roles: _json.containsKey('roles')
            ? (_json['roles'] as core.List)
                .map((value) => GoogleFirebaseExtensionsV1betaRole.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sourceUrl: _json.containsKey('sourceUrl')
            ? _json['sourceUrl'] as core.String
            : null,
        specVersion: _json.containsKey('specVersion')
            ? _json['specVersion'] as core.String
            : null,
        version: _json.containsKey('version')
            ? _json['version'] as core.String
            : null,
      );