fromJson static method

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

Creates a object from a json

Implementation

static Dice fromJson(Map<String, dynamic> json) {
  return Dice(
    emoji: Emoji.forValue(json['emoji']),
    value: json['value'],
  );
}