fromJson static method

IrPosition? fromJson(
  1. Object? json
)

Implementation

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