fromJson static method
Implementation
static Alignment? fromJson(Object? json) {
if (json is String) return named[json];
final l = readList(json);
if (l == null || l.length != 2) return null;
final x = readDouble(l[0]), y = readDouble(l[1]);
return x == null || y == null ? null : Alignment(x, y);
}