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,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
      );