LineStyle.fromJson constructor
LineStyle.fromJson(
- Object? raw
Implementation
factory LineStyle.fromJson(Object? raw) {
if (raw is LineStyle) return raw;
final json = JsonValue.map(raw) ?? const <String, dynamic>{};
return LineStyle(
color: JsonValue.string(json['color']),
width: JsonValue.doubleOrNull(json['width']),
type: JsonValue.string(json['type']),
);
}