toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'storyAreaPosition',
    if (extra != null) '@extra': extra,
    'x_percentage': x_percentage,
    'y_percentage': y_percentage,
    'width_percentage': width_percentage,
    'height_percentage': height_percentage,
    'rotation_angle': rotation_angle
  };
}