fromJson static method

FrameRef? fromJson(
  1. Map<String, Object?>? json
)

Implementation

static FrameRef? fromJson(Map<String, Object?>? json) {
  if (json == null) return null;
  var path = json['path'] as String?;
  if (path == null) return null;
  return FrameRef(
    path: path,
    width: json['width'] as int? ?? 0,
    height: json['height'] as int? ?? 0,
  );
}