PageBlockVerticalAlignment.fromJson constructor

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

Implementation

factory PageBlockVerticalAlignment.fromJson(Map<String, dynamic> json) {
  switch (json["@type"]) {
    case PageBlockVerticalAlignmentTop.CONSTRUCTOR:
      return PageBlockVerticalAlignmentTop.fromJson(json);
    case PageBlockVerticalAlignmentMiddle.CONSTRUCTOR:
      return PageBlockVerticalAlignmentMiddle.fromJson(json);
    case PageBlockVerticalAlignmentBottom.CONSTRUCTOR:
      return PageBlockVerticalAlignmentBottom.fromJson(json);
    default:
      return const PageBlockVerticalAlignment();
  }
}