deserialize method
void
deserialize(
- Map<String, dynamic>? json
)
override
Implementation
@override
void deserialize(Map<String, dynamic>? json) {
if (json == null) {
throw ApiException(
400, 'Failed to deserialize FootnoteResponse data model.');
}
super.deserialize(json);
if (json.containsKey('RequestId')) {
requestId = json['RequestId'] as String;
} else {
requestId = null;
}
if (json.containsKey('Footnote')) {
footnote = ModelBase.createInstance<Footnote>(
json['Footnote'] as Map<String, dynamic>);
} else {
footnote = null;
}
}