toJson method

dynamic toJson()

Implementation

toJson() {
  return {
    'value': value,
    'name': name,
  };
}