toJson method

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

Converts a BackgroundTypePattern object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'type': type.value,
    'document': document.toJson(),
    'fill': fill.toJson(),
    'intensity': intensity,
    'is_inverted': isInverted,
    'is_moving': isMoving,
  };
}