static Alignment? parseAlignment(Object? source) { if (source is! Map || source.isEmpty) return null; return Alignment( parseDouble(source['x']) ?? 0, parseDouble(source['y']) ?? 0, ); }