TransactionOptions.fromJson constructor

TransactionOptions.fromJson(
  1. Map json_
)

Implementation

TransactionOptions.fromJson(core.Map json_)
    : this(
        excludeTxnFromChangeStreams:
            json_.containsKey('excludeTxnFromChangeStreams')
                ? json_['excludeTxnFromChangeStreams'] as core.bool
                : null,
        partitionedDml: json_.containsKey('partitionedDml')
            ? PartitionedDml.fromJson(json_['partitionedDml']
                as core.Map<core.String, core.dynamic>)
            : null,
        readOnly: json_.containsKey('readOnly')
            ? ReadOnly.fromJson(
                json_['readOnly'] as core.Map<core.String, core.dynamic>)
            : null,
        readWrite: json_.containsKey('readWrite')
            ? ReadWrite.fromJson(
                json_['readWrite'] as core.Map<core.String, core.dynamic>)
            : null,
      );