fromJson static method

PageBlockSectionHeading? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static PageBlockSectionHeading? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return PageBlockSectionHeading(
    text: RichText.fromJson(tdMapFromJson(json['text'])),
    size: (json['size'] as int?) ?? 0,
  );
}