Enum.fromJson constructor

Enum.fromJson(
  1. Map json
)

Implementation

factory Enum.fromJson(Map json) {
  return Enum(
    name: json['name'],
    values: (json['values'] as Iterable).cast(),
  );
}