PostgresqlProfile.fromJson constructor

PostgresqlProfile.fromJson(
  1. Map json_
)

Implementation

PostgresqlProfile.fromJson(core.Map json_)
    : this(
        database: json_.containsKey('database')
            ? json_['database'] as core.String
            : null,
        hostname: json_.containsKey('hostname')
            ? json_['hostname'] as core.String
            : null,
        password: json_.containsKey('password')
            ? json_['password'] as core.String
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
        username: json_.containsKey('username')
            ? json_['username'] as core.String
            : null,
      );