getData method

Map<String, String>? getData()

Gets sub-fields of the webpush.data field.

Returns a map with sub-fields of the webpush.data field, or null if absent.

Implementation

Map<String, String>? getData() {
  return (dartify(_getData()) as Map<dynamic, dynamic>).cast<String, String>();
}