toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'type': type,
    'offset': offset,
    'length': length,
    'url': url,
    'user': user,
    'language': language,
    'custom_emoji_id': customEmojiId,
  }..removeWhere((_, v) => v == null);
}