toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (_defaultBox != null) {
map['default_box'] = _defaultBox?.toJson();
}
if (_info != null) {
map['info'] = _info?.toJson();
}
if (_color != null) {
map['color'] = _color?.toJson();
}
return map;
}