PageBlockHorizontalAlignment.fromJson constructor

PageBlockHorizontalAlignment.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PageBlockHorizontalAlignment.fromJson(Map<String, dynamic> json)  {
  switch(json["@type"]) {
    case PageBlockHorizontalAlignmentLeft.CONSTRUCTOR:
      return PageBlockHorizontalAlignmentLeft.fromJson(json);
    case PageBlockHorizontalAlignmentCenter.CONSTRUCTOR:
      return PageBlockHorizontalAlignmentCenter.fromJson(json);
    case PageBlockHorizontalAlignmentRight.CONSTRUCTOR:
      return PageBlockHorizontalAlignmentRight.fromJson(json);
    default:
      return const PageBlockHorizontalAlignment();
  }
}