EmailAuth.fromJson constructor

EmailAuth.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory EmailAuth.fromJson(Map<String, dynamic> jsonSerialization) {
  return EmailAuth(
    id: jsonSerialization['id'] as int?,
    userId: jsonSerialization['userId'] as int,
    email: jsonSerialization['email'] as String,
    hash: jsonSerialization['hash'] as String,
  );
}