CaptureSnapshotResult.fromJson constructor

CaptureSnapshotResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CaptureSnapshotResult.fromJson(Map<String, dynamic> json) {
  return CaptureSnapshotResult(
    documents: (json['documents'] as List)
        .map((e) => DocumentSnapshot.fromJson(e as Map<String, dynamic>))
        .toList(),
    strings: (json['strings'] as List).map((e) => e as String).toList(),
  );
}