toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null) 'createTime': createTime!,
      if (hostname != null) 'hostname': hostname!,
      if (name != null) 'name': name!,
      if (port != null) 'port': port!,
      if (protocol != null) 'protocol': protocol!,
      if (sourceType != null) 'sourceType': sourceType!,
      if (uid != null) 'uid': uid!,
      if (updateTime != null) 'updateTime': updateTime!,
    };