BatchGetDocumentsRequest.fromJson constructor

BatchGetDocumentsRequest.fromJson(
  1. Map _json
)

Implementation

BatchGetDocumentsRequest.fromJson(core.Map _json)
    : this(
        documents: _json.containsKey('documents')
            ? (_json['documents'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        mask: _json.containsKey('mask')
            ? DocumentMask.fromJson(
                _json['mask'] as core.Map<core.String, core.dynamic>)
            : null,
        newTransaction: _json.containsKey('newTransaction')
            ? TransactionOptions.fromJson(_json['newTransaction']
                as core.Map<core.String, core.dynamic>)
            : null,
        readTime: _json.containsKey('readTime')
            ? _json['readTime'] as core.String
            : null,
        transaction: _json.containsKey('transaction')
            ? _json['transaction'] as core.String
            : null,
      );