deserialize method
Implementation
@override
void deserialize(Map<String, dynamic>? json) {
if (json == null) {
throw ApiException(
400, 'Failed to deserialize PositionInsideNode data model.');
}
super.deserialize(json);
if (json.containsKey('NodeId')) {
nodeId = json['NodeId'] as String;
} else {
nodeId = null;
}
if (json.containsKey('Offset')) {
offset = json['Offset'] as int;
} else {
offset = null;
}
}