Params.fromJson constructor

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

Implementation

factory Params.fromJson(Map<String, dynamic> json) {
  return Params(
    lines: (json['lines'] as List)
        .map((e) => PathBean.fromJson(e as Map<String, dynamic>))
        .toList(),
    radius: json['radius'],
    width: json['width'],
    height: json['height'],
    bgColor: Color(json['bgColor']),
  );
}