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 TableCellInsert data model.');
}
if (json.containsKey('ExistingCellPosition')) {
existingCellPosition = ModelBase.createInstance<Position>(
json['ExistingCellPosition'] as Map<String, dynamic>);
} else {
existingCellPosition = null;
}
if (json.containsKey('InsertAfter')) {
insertAfter = json['InsertAfter'] as int;
} else {
insertAfter = null;
}
}