EmailReset.fromJson constructor

EmailReset.fromJson(
  1. Map<String, dynamic> jsonSerialization,
  2. SerializationManager serializationManager
)

Implementation

factory EmailReset.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return EmailReset(
    id: serializationManager.deserialize<int?>(jsonSerialization['id']),
    userId:
        serializationManager.deserialize<int>(jsonSerialization['userId']),
    verificationCode: serializationManager
        .deserialize<String>(jsonSerialization['verificationCode']),
    expiration: serializationManager
        .deserialize<DateTime>(jsonSerialization['expiration']),
  );
}