toJson method
Implementation
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
if (topLeft != null) {
data['TopLeft'] = topLeft!.toJson();
}
if (bottomRight != null) {
data['BottomRight'] = bottomRight!.toJson();
}
return data;
}