toMap method
Implementation
Map<String, dynamic> toMap() {
Map<String, dynamic> map = {};
if (type != null) {
map['type'] = type;
}
if (value != null) {
map['value'] = value;
}
if (appName != null) {
map['appName'] = appName;
}
return map;
}