toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'messageDice',
    if (extra != null) '@extra': extra,
    'initial_state': initial_state,
    'final_state': final_state,
    'emoji': emoji,
    'value': value,
    'success_animation_frame_number': success_animation_frame_number
  };
}