Document.fromJson constructor
Document.fromJson(
- Map _json
Implementation
Document.fromJson(core.Map _json)
: this(
createTime: _json.containsKey('createTime')
? _json['createTime'] as core.String
: null,
fields: _json.containsKey('fields')
? (_json['fields'] as core.Map<core.String, core.dynamic>).map(
(key, item) => core.MapEntry(
key,
Value.fromJson(item as core.Map<core.String, core.dynamic>),
),
)
: null,
name: _json.containsKey('name') ? _json['name'] as core.String : null,
updateTime: _json.containsKey('updateTime')
? _json['updateTime'] as core.String
: null,
);