toJson method

Map<String, dynamic> toJson()

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;
}