fromJson static method

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

Implementation

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

  return RichTextDiff(
    text: RichText.fromJson(tdMapFromJson(json['text'])),
    oldText: RichText.fromJson(tdMapFromJson(json['old_text'])),
  );
}