toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'backgroundTypePattern',
if (extra != null) '@extra': extra,
'fill': fill,
'intensity': intensity,
'is_inverted': is_inverted,
'is_moving': is_moving
};
}