toMap method
Implementation
@override
Map<String, dynamic> toMap() {
return {
"\$id": $id,
"\$createdAt": $createdAt,
"\$updatedAt": $updatedAt,
"projectId": projectId,
"name": name,
"api": api,
"engine": engine,
"version": version,
"specification": specification,
"backend": backend,
"hostname": hostname,
"connectionPort": connectionPort,
"connectionUser": connectionUser,
"connectionPassword": connectionPassword,
"connectionString": connectionString,
"ssl": ssl,
"status": status,
"containerStatus": containerStatus,
"lastAccessedAt": lastAccessedAt,
"idleUntil": idleUntil,
"lifecycleState": lifecycleState,
"idleTimeoutMinutes": idleTimeoutMinutes,
"cpu": cpu,
"memory": memory,
"storage": storage,
"storageClass": storageClass,
"storageMaxGb": storageMaxGb,
"nodePool": nodePool,
"replicas": replicas,
"syncMode": syncMode,
"crossRegionReplicas": crossRegionReplicas,
"networkMaxConnections": networkMaxConnections,
"networkIdleTimeoutSeconds": networkIdleTimeoutSeconds,
"networkIPAllowlist": networkIPAllowlist,
"backupEnabled": backupEnabled,
"pitr": pitr,
"pitrRetentionDays": pitrRetentionDays,
"storageAutoscaling": storageAutoscaling,
"storageAutoscalingThresholdPercent": storageAutoscalingThresholdPercent,
"storageAutoscalingMaxGb": storageAutoscalingMaxGb,
"maintenanceWindowDay": maintenanceWindowDay,
"maintenanceWindowHourUtc": maintenanceWindowHourUtc,
"metricsEnabled": metricsEnabled,
"sqlApiEnabled": sqlApiEnabled,
"sqlApiAllowedStatements": sqlApiAllowedStatements,
"sqlApiMaxRows": sqlApiMaxRows,
"sqlApiMaxBytes": sqlApiMaxBytes,
"sqlApiTimeoutSeconds": sqlApiTimeoutSeconds,
"error": error,
};
}