fromMap static method

NotificationButtonData? fromMap(
  1. dynamic data
)

Implementation

static NotificationButtonData? fromMap(dynamic data) {
  try {
    return NotificationButtonData.create(data['title'], data['icon']);
  } catch (e) {
    return null;
  }
}