fromJson static method

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

Implementation

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

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