fromJson static method

IrInsets fromJson(
  1. Object? json
)

Implementation

static IrInsets fromJson(Object? json) {
  if (json == null) return zero;
  final m = json as Map<String, Object?>;
  return IrInsets(
    top: _d(m['top']) ?? 0,
    right: _d(m['right']) ?? 0,
    bottom: _d(m['bottom']) ?? 0,
    left: _d(m['left']) ?? 0,
  );
}