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,
      );