factory RectSource.fromJson(Map<String, Object?> m) => RectSource((m['w'] as num).toDouble(), (m['h'] as num).toDouble());