Email.fromNative constructor

Email.fromNative(
  1. Map data
)

Create a Email from native data.

Implementation

Email.fromNative(Map data)
    : address = data['address'] as String?,
      body = data['body'] as String?,
      subject = data['subject'] as String?,
      type = EmailType.values[data['type'] as int];