BoxStyle.fromJson constructor

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

Implementation

factory BoxStyle.fromJson(Map<String, dynamic> json) {
  return BoxStyle(
    fillColor: json.containsKey('fillColor')
        ? dom.RGBA.fromJson(json['fillColor'] as Map<String, dynamic>)
        : null,
    hatchColor: json.containsKey('hatchColor')
        ? dom.RGBA.fromJson(json['hatchColor'] as Map<String, dynamic>)
        : null,
  );
}