toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (backendType != null) 'backendType': backendType!,
      if (connectionName != null) 'connectionName': connectionName!,
      if (createTime != null) 'createTime': createTime!,
      if (currentDiskSize != null) 'currentDiskSize': currentDiskSize!,
      if (databaseVersion != null) 'databaseVersion': databaseVersion!,
      if (diskEncryptionConfiguration != null)
        'diskEncryptionConfiguration': diskEncryptionConfiguration!.toJson(),
      if (diskEncryptionStatus != null)
        'diskEncryptionStatus': diskEncryptionStatus!.toJson(),
      if (etag != null) 'etag': etag!,
      if (failoverReplica != null)
        'failoverReplica': failoverReplica!.toJson(),
      if (gceZone != null) 'gceZone': gceZone!,
      if (instanceType != null) 'instanceType': instanceType!,
      if (ipAddresses != null)
        'ipAddresses': ipAddresses!.map((value) => value.toJson()).toList(),
      if (ipv6Address != null) 'ipv6Address': ipv6Address!,
      if (kind != null) 'kind': kind!,
      if (masterInstanceName != null)
        'masterInstanceName': masterInstanceName!,
      if (maxDiskSize != null) 'maxDiskSize': maxDiskSize!,
      if (name != null) 'name': name!,
      if (onPremisesConfiguration != null)
        'onPremisesConfiguration': onPremisesConfiguration!.toJson(),
      if (outOfDiskReport != null)
        'outOfDiskReport': outOfDiskReport!.toJson(),
      if (project != null) 'project': project!,
      if (region != null) 'region': region!,
      if (replicaConfiguration != null)
        'replicaConfiguration': replicaConfiguration!.toJson(),
      if (replicaNames != null) 'replicaNames': replicaNames!,
      if (rootPassword != null) 'rootPassword': rootPassword!,
      if (satisfiesPzs != null) 'satisfiesPzs': satisfiesPzs!,
      if (scheduledMaintenance != null)
        'scheduledMaintenance': scheduledMaintenance!.toJson(),
      if (secondaryGceZone != null) 'secondaryGceZone': secondaryGceZone!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (serverCaCert != null) 'serverCaCert': serverCaCert!.toJson(),
      if (serviceAccountEmailAddress != null)
        'serviceAccountEmailAddress': serviceAccountEmailAddress!,
      if (settings != null) 'settings': settings!.toJson(),
      if (state != null) 'state': state!,
      if (suspensionReason != null) 'suspensionReason': suspensionReason!,
    };