fromJson static method
Returns a new DocumentEmbedded instance and imports its values from
json
if it's non-null, null if json
is null.
Implementation
static DocumentEmbedded? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return DocumentEmbedded(
container: json[r'container'] == null
? null
: Map<String, Object>.from(json[r'container']),
createdBy: Person.fromJson(json[r'createdBy']),
signers: Signer.listFromJson(json[r'signers']),
stateTransitions: json[r'stateTransitions'] == null
? null
: List<String>.from(json[r'stateTransitions']),
type: DocumentType.fromJson(json[r'type']),
);
}