SMS.fromNative constructor

SMS.fromNative(
  1. Map<Object?, Object?> data
)

Construct a new SMS instance from the given data.

Implementation

factory SMS.fromNative(Map<Object?, Object?> data) {
  return SMS(
    message: data['message'] as String?,
    phoneNumber: data['phoneNumber'] as String? ?? '',
  );
}