toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts this instance of MPLabelGraphic to a JSON parseable object.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'backgroundImage': backgroundImage,
    'content': content,
    'stretchX': stretchX,
    'stretchY': stretchY,
  };
}