Map<String, dynamic> toJson() { final map = <String, dynamic>{}; map['type'] = type; map['name'] = name; map['value'] = value; return map; }