fromJson static method

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

Implementation

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

  return InputPageBlockBlockQuote(
    blocks: List<InputPageBlock>.from(
      tdListFromJson(json['blocks'])
          .map((item) => InputPageBlock.fromJson(tdMapFromJson(item)))
          .whereType<InputPageBlock>(),
    ),
    credit: RichText.fromJson(tdMapFromJson(json['credit'])),
  );
}