LineStyle.fromJson constructor

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

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,
  );
}