from static method

PCanvasElement? from(
  1. Object? o
)

Implementation

static PCanvasElement? from(Object? o) {
  if (o == null) return null;
  if (o is PCanvasElement) return o;

  if (o is Map<String, dynamic>) {
    return PCanvasElement.fromJson(o);
  }

  return null;
}