Document.fromMap constructor

Document.fromMap(
  1. Map map
)

Document.fromMap(Map map) is a constructor that takes a Map as an argument and creates a new Document object from it.

Implementation

Document.fromMap(Map map)
    : this._(
        identifier: map['identifier'],
        slug: map['slug'],
        schema: map['schema'],
        content: map['content'] != null
            ? Map<String, Object>.from(map['content'])
            : null,
      );