AsyncContentBody.fromJson constructor
Implementation
factory AsyncContentBody.fromJson(Map<String, Object?> json) {
return AsyncContentBody(
value: json[r'value'] as String?,
representation: json[r'representation'] != null
? AsyncContentBodyRepresentation.fromValue(
json[r'representation']! as String)
: null,
renderTaskId: json[r'renderTaskId'] as String?,
error: json[r'error'] as String?,
status: json[r'status'] != null
? AsyncContentBodyStatus.fromValue(json[r'status']! as String)
: null,
embeddedContent: (json[r'embeddedContent'] as List<Object?>?)
?.map((i) => EmbeddedContent.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
webresource: json[r'webresource'] != null
? WebResourceDependencies.fromJson(
json[r'webresource']! as Map<String, Object?>)
: null,
mediaToken: json[r'mediaToken'] != null
? AsyncContentBodyMediaToken.fromJson(
json[r'mediaToken']! as Map<String, Object?>)
: null,
expandable: json[r'_expandable'] != null
? AsyncContentBodyExpandable.fromJson(
json[r'_expandable']! as Map<String, Object?>)
: null,
links: json[r'_links'] != null
? GenericLinks.fromJson(json[r'_links']! as Map<String, Object?>)
: null,
);
}