fromJson static method

IrStroke? fromJson(
  1. Object? json
)

Implementation

static IrStroke? fromJson(Object? json) {
  if (json == null) return null;
  final m = json as Map<String, Object?>;
  return IrStroke(
    color: IrColor.fromJson(m['color']),
    width: _d(m['width']) ?? 1,
  );
}