decode static method

Message decode(
  1. Object result
)

Implementation

static Message decode(Object result) {
  result as List<Object?>;
  return Message(
    messageId: result[0] as String?,
    priority: result[1]! as int,
    ttl: result[2]! as int,
    collapseKey: result[3] as String?,
    data: (result[4] as Map<Object?, Object?>?)!.cast<String?, String?>(),
    notification: result[5] != null
        ? Notification.decode(result[5]! as List<Object?>)
        : null,
  );
}