toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final address = this.address;
  final mtu = this.mtu;
  final name = this.name;
  final status = this.status;
  return {
    if (address != null) 'address': address,
    if (mtu != null) 'mtu': mtu,
    if (name != null) 'name': name,
    if (status != null) 'status': status.toValue(),
  };
}