toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  final data = <String, dynamic>{};
  data['id'] = id;
  data['name'] = name;
  data['alias'] = alias;
  data['part_number'] = partNumber;
  return data;
}