toJson method

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

Converts the object into a JSON parsable Map

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "type": type.value,
  };
}