toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> map = {
"api_name": apiName,
'attribute': attribute,
};
if(getAttrValues != null) {
map['get_attr_values'] = List.generate(getAttrValues!.length, (index) => getAttrValues![index].toJson());
}
return map;
}