WindowRectangleRow.fromJson constructor

WindowRectangleRow.fromJson(
  1. Map<String, dynamic> json, {
  2. ValueSerializer? serializer,
})

Implementation

factory WindowRectangleRow.fromJson(Map<String, dynamic> json,
    {ValueSerializer? serializer}) {
  serializer ??= driftRuntimeOptions.defaultSerializer;
  return WindowRectangleRow(
    id: serializer.fromJson<int>(json['id']),
    width: serializer.fromJson<double?>(json['width']),
    height: serializer.fromJson<double?>(json['height']),
    dx: serializer.fromJson<double?>(json['dx']),
    dy: serializer.fromJson<double?>(json['dy']),
  );
}