BackgroundFillGradient.fromJson constructor

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

Creates a BackgroundFillGradient object from JSON.

Implementation

factory BackgroundFillGradient.fromJson(Map<String, dynamic> json) {
  return BackgroundFillGradient(
    topColor: json['top_color'],
    bottomColor: json['bottom_color'],
    rotationAngle: json['rotation_angle'],
  );
}