toJson method

Map<String, dynamic> toJson([
  1. String? field
])

Creates JSON object from the Input Sticker object.

Implementation

Map<String, dynamic> toJson([String? field]) {
  return {
    'sticker': sticker.getValue(field),
    'format': format.value,
    'emoji_list': emojiList,
    'mask_position': maskPosition,
    'keywords': keywords,
  }..removeWhere(_nullFilter);
}