CreateDatabaseRequest.fromJson constructor

CreateDatabaseRequest.fromJson(
  1. Map json_
)

Implementation

CreateDatabaseRequest.fromJson(core.Map json_)
    : this(
        createStatement: json_.containsKey('createStatement')
            ? json_['createStatement'] as core.String
            : null,
        databaseDialect: json_.containsKey('databaseDialect')
            ? json_['databaseDialect'] as core.String
            : null,
        encryptionConfig: json_.containsKey('encryptionConfig')
            ? EncryptionConfig.fromJson(json_['encryptionConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        extraStatements: json_.containsKey('extraStatements')
            ? (json_['extraStatements'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        protoDescriptors: json_.containsKey('protoDescriptors')
            ? json_['protoDescriptors'] as core.String
            : null,
      );