fromJson static method

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

Implementation

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

  return RichTextIcon(
    document: Document.fromJson(tdMapFromJson(json['document'])),
    width: (json['width'] as int?) ?? 0,
    height: (json['height'] as int?) ?? 0,
  );
}