toJson method
to json
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
'id': id,
'type': runtimeType.toString(),
'angle': angle,
'size': size.toJson(),
'offset': offset.toJson(),
'status': status.index,
'lockZOrder': lockZOrder,
if (content != null) 'content': content?.toJson(),
};
}