EmailCreateAccountRequest.fromJson constructor

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

Implementation

factory EmailCreateAccountRequest.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return EmailCreateAccountRequest(
    id: serializationManager.deserialize<int?>(jsonSerialization['id']),
    userName: serializationManager
        .deserialize<String>(jsonSerialization['userName']),
    email:
        serializationManager.deserialize<String>(jsonSerialization['email']),
    hash: serializationManager.deserialize<String>(jsonSerialization['hash']),
    verificationCode: serializationManager
        .deserialize<String>(jsonSerialization['verificationCode']),
  );
}