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