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