Params.fromJson constructor
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']),
);
}