BackgroundFillFreeformGradient.fromJson constructor

BackgroundFillFreeformGradient.fromJson(
  1. Map<String, dynamic> json
)

Creates a BackgroundFillFreeformGradient object from JSON.

Implementation

factory BackgroundFillFreeformGradient.fromJson(Map<String, dynamic> json) {
  return BackgroundFillFreeformGradient(
    colors: List<int>.from(json['colors']),
  );
}