PartitionQueryRequest.fromJson constructor

PartitionQueryRequest.fromJson(
  1. Map json_
)

Implementation

PartitionQueryRequest.fromJson(core.Map json_)
    : this(
        paramTypes: json_.containsKey('paramTypes')
            ? (json_['paramTypes'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  Type.fromJson(value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        params: json_.containsKey('params')
            ? json_['params'] as core.Map<core.String, core.dynamic>
            : null,
        partitionOptions: json_.containsKey('partitionOptions')
            ? PartitionOptions.fromJson(json_['partitionOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        sql: json_.containsKey('sql') ? json_['sql'] as core.String : null,
        transaction: json_.containsKey('transaction')
            ? TransactionSelector.fromJson(
                json_['transaction'] as core.Map<core.String, core.dynamic>)
            : null,
      );