Document<T>.fromJson constructor

Document<T>.fromJson(
  1. Map<String, dynamic> json,
  2. T fromJsonT(
    1. Object? json
    )
)

Creates a Document object from json

Implementation

factory Document.fromJson(
  Map<String, dynamic> json,
  T Function(Object? json) fromJsonT,
) =>
    _$DocumentFromJson(json, fromJsonT);