BatchGetDocumentsResponse.fromJson constructor

BatchGetDocumentsResponse.fromJson(
  1. Object? j
)

Implementation

factory BatchGetDocumentsResponse.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return BatchGetDocumentsResponse(
    found: switch (json['found']) {
      null => null,
      Object $1 => Document.fromJson($1),
    },
    missing: switch (json['missing']) {
      null => null,
      Object $1 => decodeString($1),
    },
    transaction: switch (json['transaction']) {
      null => Uint8List(0),
      Object $1 => decodeBytes($1),
    },
    readTime: switch (json['readTime']) {
      null => null,
      Object $1 => Timestamp.fromJson($1),
    },
  );
}