Line data Source code
1 : import 'package:json_annotation/json_annotation.dart';
2 :
3 : part 'vendor.g.dart';
4 :
5 : /// Gives vendor details matching as prefix of mac address.
6 : @JsonSerializable()
7 : class Vendor {
8 3 : Vendor({
9 : required this.macPrefix,
10 : required this.vendorName,
11 : required this.private,
12 : required this.blockType,
13 : required this.lastUpdate,
14 : });
15 :
16 2 : factory Vendor.fromJson(Map<String, dynamic> json) => _$VendorFromJson(json);
17 :
18 2 : Map<String, dynamic> toJson() => _$VendorToJson(this);
19 :
20 : final String macPrefix;
21 : final String vendorName;
22 : final String private;
23 : final String blockType;
24 : final String lastUpdate;
25 : }
|