BackgroundFillFreeformGradient.fromJson constructor

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

Parse from a json

Implementation

factory BackgroundFillFreeformGradient.fromJson(Map<String, dynamic> json) => BackgroundFillFreeformGradient(
  colors: List<int>.from((json['colors'] ?? []).map((item) => item).toList()),
);