ReadOptions.fromJson constructor

ReadOptions.fromJson(
  1. Map json_
)

Implementation

ReadOptions.fromJson(core.Map json_)
    : this(
        newTransaction: json_.containsKey('newTransaction')
            ? TransactionOptions.fromJson(json_['newTransaction']
                as core.Map<core.String, core.dynamic>)
            : null,
        readConsistency: json_.containsKey('readConsistency')
            ? json_['readConsistency'] as core.String
            : null,
        readTime: json_.containsKey('readTime')
            ? json_['readTime'] as core.String
            : null,
        transaction: json_.containsKey('transaction')
            ? json_['transaction'] as core.String
            : null,
      );