toJson method

Map<String, dynamic> toJson()

Converts a Dice object to json.

Implementation

Map<String, dynamic> toJson() {
  return {
    'emoji': emoji.emoji,
    'value': value,
  };
}