CloudSqlProperties.fromJson constructor

CloudSqlProperties.fromJson(
  1. Map json_
)

Implementation

CloudSqlProperties.fromJson(core.Map json_)
    : this(
        credential: json_.containsKey('credential')
            ? CloudSqlCredential.fromJson(
                json_['credential'] as core.Map<core.String, core.dynamic>)
            : null,
        database: json_.containsKey('database')
            ? json_['database'] as core.String
            : null,
        instanceId: json_.containsKey('instanceId')
            ? json_['instanceId'] as core.String
            : null,
        serviceAccountId: json_.containsKey('serviceAccountId')
            ? json_['serviceAccountId'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );