It can be obtained using
wg show <interface>
It might be good to include it in get_settings call.
get_settings