fromJson static method

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

Implementation

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

  return InputRichMessage(
    source: RichMessageSource.fromJson(tdMapFromJson(json['source'])),
    isRtl: (json['is_rtl'] as bool?) ?? false,
    detectAutomaticBlocks:
        (json['detect_automatic_blocks'] as bool?) ?? false,
  );
}