toMap method

Map<String, dynamic> toMap()

转换为Map,用于序列化

Implementation

Map<String, dynamic> toMap() {
  return {
    'serviceName': serviceName,
    'serviceType': serviceType,
    'sn': sn,
    'target': target,
    'port': port,
    'ipAddress': ipAddress,
    'macAddress': macAddress,
    'remoteId': remoteId,
    'txtRecords': txtRecords,
  };
}