WindowRectangleRow.fromJson constructor
- Map<
String, dynamic> json, { - 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']),
);
}