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 PageStatData data model.');
}
if (json.containsKey('FootnotesStatData')) {
footnotesStatData = ModelBase.createInstance<FootnotesStatData>(
json['FootnotesStatData'] as Map<String, dynamic>);
} else {
footnotesStatData = null;
}
if (json.containsKey('ParagraphCount')) {
paragraphCount = json['ParagraphCount'] as int;
} else {
paragraphCount = null;
}
if (json.containsKey('WordCount')) {
wordCount = json['WordCount'] as int;
} else {
wordCount = null;
}
if (json.containsKey('PageNumber')) {
pageNumber = json['PageNumber'] as int;
} else {
pageNumber = null;
}
}