toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (auth != null) 'auth': auth!,
      if (basePath != null) 'basePath': basePath!,
      if (baseUrl != null) 'baseUrl': baseUrl!,
      if (batchPath != null) 'batchPath': batchPath!,
      if (canonicalName != null) 'canonicalName': canonicalName!,
      if (description != null) 'description': description!,
      if (discoveryVersion != null) 'discoveryVersion': discoveryVersion!,
      if (documentationLink != null) 'documentationLink': documentationLink!,
      if (endpoints != null) 'endpoints': endpoints!,
      if (etag != null) 'etag': etag!,
      if (exponentialBackoffDefault != null)
        'exponentialBackoffDefault': exponentialBackoffDefault!,
      if (features != null) 'features': features!,
      if (icons != null) 'icons': icons!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (labels != null) 'labels': labels!,
      if (methods != null) 'methods': methods!,
      if (name != null) 'name': name!,
      if (ownerDomain != null) 'ownerDomain': ownerDomain!,
      if (ownerName != null) 'ownerName': ownerName!,
      if (packagePath != null) 'packagePath': packagePath!,
      if (parameters != null) 'parameters': parameters!,
      if (protocol != null) 'protocol': protocol!,
      if (resources != null) 'resources': resources!,
      if (revision != null) 'revision': revision!,
      if (rootUrl != null) 'rootUrl': rootUrl!,
      if (schemas != null) 'schemas': schemas!,
      if (servicePath != null) 'servicePath': servicePath!,
      if (title != null) 'title': title!,
      if (version != null) 'version': version!,
      if (versionModule != null) 'version_module': versionModule!,
    };