LineStyle.fromJson constructor
Implementation
factory LineStyle.fromJson(Map<String, dynamic> json) {
return LineStyle(
color:
json.containsKey('color')
? dom.RGBA.fromJson(json['color'] as Map<String, dynamic>)
: null,
pattern:
json.containsKey('pattern')
? LineStylePattern.fromJson(json['pattern'] as String)
: null,
);
}