convertJsonToValue static method
Implementation
static Alignment? convertJsonToValue(final String key) {
switch (key) {
case 'tL':
return Alignment.topLeft;
case 'tC':
return Alignment.topCenter;
case 'tR':
return Alignment.topRight;
case 'cL':
return Alignment.centerLeft;
case 'c':
return Alignment.center;
case 'cR':
return Alignment.centerRight;
case 'bL':
return Alignment.bottomLeft;
case 'bC':
return Alignment.bottomCenter;
case 'bR':
return Alignment.bottomRight;
default:
return null;
}
}