fromJson static method

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

Implementation

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

  return ChatFolderName(
    text: FormattedText.fromJson(tdMapFromJson(json['text'])),
    animateCustomEmoji: (json['animate_custom_emoji'] as bool?) ?? false,
  );
}