Document.fromMap constructor
Document.fromMap(
- 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,
);