toJson method

Map toJson()

Implementation

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