toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> result = {};

  for (var item in fileds) {
    result[item.name!] = item.toJson();
  }

  return result;
}